<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客列表</title>
    <link rel="stylesheet" href="CSS/common.css">
    <link rel="stylesheet" href="CSS/blog_list.css">
</head>
<body>
    <!-- 导航栏 -->
    <div class="nav">
        <!-- logo -->
        <img src="image/🐋.jpg" alt="">
        <!-- 标题 -->
        <span class="title">我的博客系统</span>
        <!-- 空白的占位符 -->
        <span class="spacer"></span>
        <!-- 右侧的几个链接 -->
        <a href="blog_list.html">主页</a>
        <a href="blog_edit.html">写博客</a>
        <a href="logout">注销</a>

    </div>

    <!-- 版心 -->
    <div class="container">
        <!-- 左侧个人信息 -->
        <div class="left">
            <div class="card">
                <!-- <form action="" method="post">
                    <input id="fileInp" type="file" hidden>
                    <div class="avator">
                        <img src="image/头像.jpg" alt="">
                    </div>
                </form> -->
                <img src="image/头像.jpg" alt="">
                <h3 th:text="${user.username}"></h3>
                <a href="">gitee 地址</a>

                <div class="counter">
                    <span>文章</span>
                    <span>分类</span>
                </div>
                <div class="counter">
                    <span th:text="${blogNum}"></span>
                    <span>无</span>
                </div>
            </div>
        </div>
        <!--右侧内容详情  -->
        <div class="right">
             <!-- 每个 .blog 就表示一篇博客的区域 -->
             <div class="blog" th:each="blog: ${blogs}">
                 <!-- 博客的标题 -->
                 <div class="title" th:text="${blog.title}"></div>
                 <!-- 博客的发布时间 -->
                 <div class="date" th:text="${blog.postTime}"></div>
                 <!-- 博客的摘要 -->
                 <div class="desc" th:text="${blog.content}">
                 </div>
                 <!-- 查看博客详情按钮 -->
                 <a th:href="${'blog_detail.html?blogId='+blog.blogId}" class="detail">查看全文 &gt; &gt;</a>
             </div>

        </div>

    </div>

    <!-- <script>
            var fileInp = document.querySelector('#fileInp')
            var avator = document.querySelector('.avator')
            avator.onclick = function(){
                fileInp.onclick
            }
    </script> -->
</body>
</html>